<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="table-scrollable">
	<table class="table table-striped table-hover table-success">
		<thead>
			<tr>
				<th>#</th>
				<th>省</th>
				<th>市</th>
				<th>区</th>
				<th>区号</th>
				<th>简码</th>
				<th>城市编码</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.result }" var="region" varStatus="vs">
			<tr>
				<td>${vs.count + (page.pageNo - 1) * page.pageSize}</td>
				<td>${region.province}</td>
				<td>${region.city}</td>
				<td>${region.district}</td>
				<td>${region.postcode}</td>
				<td>${region.shortcode}</td>
				<td>${region.citycode}</td>
				<td>
					<a href="javascript:;" class="btn btn-sm blue" onclick="update('/region/region?id=${region.id}')">
						<i class="fa fa-edit"></i>编辑
					</a>
					<a href="javascript:;" class="btn btn-sm red" onclick="del('/region/delete?id=${region.id}')">
						<i class="fa fa-trash"></i>删除
					</a>
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<div class="pageination-panel">${page}</div>